From: Will Sabransky Date: Sun, 20 Jul 2025 22:05:44 +0000 (-0500) Subject: ostree-prepare-root: remove duplicate transient directory X-Git-Tag: archive/raspbian/2025.7-2+rpi1^2^2~6^2~3^2~2^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=5abb86deb59ea6876acb6e729f7e47ae99e6b195;p=ostree.git ostree-prepare-root: remove duplicate transient directory Only create the transient etc directory once to prevent failures due to directory existence. --- diff --git a/src/libotcore/otcore-prepare-root.c b/src/libotcore/otcore-prepare-root.c index a52d711d..893ef555 100644 --- a/src/libotcore/otcore-prepare-root.c +++ b/src/libotcore/otcore-prepare-root.c @@ -408,7 +408,7 @@ otcore_mount_etc (GKeyFile *config, GVariantBuilder *metadata_builder, const cha { const char *path; int mode; - } subdirs[] = { { ovldir, 0700 }, { upperdir, 0755 }, { workdir, 0755 } }; + } subdirs[] = { { upperdir, 0755 }, { workdir, 0755 } }; for (int i = 0; i < G_N_ELEMENTS (subdirs); i++) { if (mkdirat (AT_FDCWD, subdirs[i].path, subdirs[i].mode) < 0)